package edu.wpi.first.wpilibj.robot;

import edu.wpi.first.wpilibj.*;

public class AutoShoot extends Motor{
    
    Jaguar gun;
    Jaguar trigger;
    Jaguar belt;
    int c = 0;
    AutoAngle aa;
    
    public AutoShoot(Jaguar gun, Jaguar trigger, Jaguar belt){//, AutoAngle aa){
        this.trigger = trigger;
        this.gun = gun;
        this.belt = belt;
        this.aa = aa;
    }
    
    public void run(){
        c = 0;
        while(true){
            if (c<9300){
                gun.set(-.4);
            }
            if (c>=9300 && c<11600){
                trigger.set(-.5);
                gun.set(-.4);
            }
            if (c>=11600 && c<100000){
                trigger.set(-.5);
                gun.set(-.4);
                belt.set(1);
            }
            c++;
        }
        //c = 0;
    }
    
    public void resetThingy(){
        c = 0;
    }
}
